package com.coocaa.optimizer.movie.cleaner.manager;

import android.content.Context;

/**
 * Created by lu on 17-3-29.
 */

public abstract class CleanerManagerFactory {

    public abstract CleanerManager create(Context context);


    public static final CleanerManagerFactory factory = new CleanerManagerFactory() {
        private CleanerManager instance = null;

        @Override
        public synchronized CleanerManager create(Context context) {
            if (instance == null)
                instance = new CleanerManagerImpl(context);
            return instance;
        }
    };
}
